﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EDiamondModel;
public partial class UControl_UCLoaiSanPham : System.Web.UI.UserControl
{
    EDiamondEntities1 db = new EDiamondEntities1();
    protected void Page_Load(object sender, EventArgs e)
    {
        //if (!IsPostBack)
        //{
        //    var query = db.NhaSanXuats;
        //    DsLoai.DataSource = query;
        //    DsLoai.DataBind();
        //}
    }
    //protected void DsLoai_ItemDataBound(object sender, DataListItemEventArgs e)
    //{
    //    int loai = System.Convert.ToInt16(DsLoai.DataKeys[e.Item.ItemIndex]);
    //    var query = db.LoaiSanPhams.Where(x => x.MaNhaSanXuat == loai);
    //    System.Web.UI.WebControls.GridView gv = new GridView();
    //    gv = (GridView)e.Item.FindControl("LuoiNhom");
    //    gv.DataSource = query;
    //    gv.DataBind();
    //}
}